remember AIImage Generation
fun Dock.Button.rememberAIImageGeneration(aiGatewayConfig: AIGatewayConfig, builder: Dock.ButtonBuilder.() -> Unit = {}): Button<Dock.ItemScope>
A composable helper function that creates and remembers a Dock.Button that opens a sheet with prompt input to generate an image.
Return
a button that will be displayed in the dock.
Parameters
ai Gateway Config
the gateway config to IMG.LY AI features.
builder
the builder lambda to override the default builder.
fun InspectorBar.Button.rememberAIImageGeneration(aiGatewayConfig: AIGatewayConfig, builder: InspectorBar.ButtonBuilder.() -> Unit = {}): Button<InspectorBar.ItemScope>
A composable helper function that creates and remembers an InspectorBar.Button that opens a sheet with prompt input to generate an image and replace currently selected image block.
Return
a button that will be displayed in the inspector bar.
Parameters
ai Gateway Config
the gateway config to IMG.LY AI features.
builder
the builder lambda to override the default builder.